local Lua__quangulx = fk.CreateSkill{
  name = "Lua__quangulx",
  anim_type = "offensive",
}

Fk:loadTranslationTable{
  ["Lua__quangulx"] = "拳骨流星",
  [":Lua__quangulx"] = "你可转化任意张牌对任意名其他角色使用或打出一张伤害基数为X的杀（X为你以此法转化的牌数）。",
  ["#Lua__quangulx"] = "请选择此【杀】的目标",
}

local U = require "packages.utility.utility"

Lua__quangulx:addEffect("viewas", {
    anim_type = "offensive",
    pattern = "slash",
    prompt = "#Lua__quangulx",
    handly_pile = true,
    card_filter = Util.TrueFunc,
    view_as = function(self, player, cards)
        if #cards == 0 then return end
        local c = Fk:cloneCard("slash")
        c.skillName = Lua__quangulx.name
        c:addSubcards(cards)
        return c
    end,
})

Lua__quangulx:addEffect(fk.TargetSpecified, {
    is_delay_effect = true,
    mute = true,
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(Lua__quangulx.name) and data.card.skillName == Lua__quangulx.name
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        data.additionalDamage = (data.additionalDamage or 0) + #Card:getIdList(data.card) - 1
    end,
})

Lua__quangulx:addEffect("targetmod", {
    extra_target_func = function(self, player, skill, card)
        if card.skillName == Lua__quangulx.name then
          return 999
        end
    end,
})


return Lua__quangulx 